package database;

import java.util.ArrayList;

public class Room {
    String name;//寝室昵称
    int Rnum;//寝室号
    int count;//寝室人数
    String sex;//男寝还是女寝
    String sanitate;//寝室卫生
    String award;//寝室获奖情况
    String studentname;//寝室长名字
    public Room(){//未赋值时默认值
        this.name = "九江学院的某个寝室";
        this.Rnum = 9999;
        this.award = "无";
        this.sex = "男";
        this.sanitate = "合格";
        this.count = 0;
        this.studentname = "无";
    }
    public Room(String name,int Rnum,int count,String award,String sex,String sanitate,String studentname){
        this.name = name;
        this.Rnum = Rnum;
        this.count = count;
        this.award = award;
        this.sex = sex;
        this.sanitate = sanitate;
        this.studentname = studentname;
    }
    public ArrayList getList(){
        ArrayList list = new ArrayList();
        list.add(name);
        list.add(Rnum);
        list.add(count);
        list.add(award);
        list.add(sex);
        list.add(sanitate);
        list.add(studentname);
        return list;
    }
    public String getName(){
        return name;
    }
    public int getRnum(){
        return Rnum;
    }
    public int getCount(){
        return count;
    }
    public String getSex(){
        return sex;
    }
    public String getSanitate(){
        return sanitate;
    }
    public String getAward(){
        return award;
    }
    public void setStudentname(String studentname){
        this.studentname = studentname;
    }
    public String getStudentname(){
        return studentname;
    }
    public void setRnum(int Rnum){
        this.Rnum = Rnum;
    }
}
